<?php
class RSITE_Acl extends Zend_Acl
{
		public function __construct(Zend_Auth $auth)
		{
		//Role - Papel
    	//Allow - Privilégio
    	//Resource - recurso
    	
		//RECURSOS
    	$this->add(new Zend_Acl_Resource('campanhas'));
    	$this->add(new Zend_Acl_Resource('paginas'));
    	
    	
    	
    	//Papeis
    	$this->addRole(new Zend_Acl_Role('visitante'));
    	$this->addRole(new Zend_Acl_Role('usuario'),'visitante');
    	$this->addRole(new Zend_Acl_Role('administrador'));
    	
    	//Privilégios
    	$this->allow('visitante','paginas','visualizar');
    	$this->allow('usuario','campanha','paginas');
    	$this->allow('administrador');
		}

}